Fixed the stage code, used a singleton.