Total controller rewritten
Total controller rewritten