Removed function from MainFrame.