Fixed main class and added IMCHandler.