Put core logic into Restas app