Quick reformation in Server, added function PerformPreviousActions
Submit implemented. Need testing