The thread is a bit long but there is a lot of possible solutions to be found in the following thread…