Added code to get the main box from the Interface class