Fixed main function call