Improved PullSignalMainProc subroutine formatting prior to adding semaphore signalling