Minor changes to boss
Used a synchronized lock to prevent two Engines from being created