Added thread safe Singleton pattern to Engine due to issues in Linux