Cleaned up and setup compiler and compiler methods to start only once services is ready and once compiler is ready.