Only main function remains