Added initial control panel code (UNTESTED)