Added simple main control