Backend rewrited to Singleton object