Fixed main entry point