Moved main to a OmpaController