Added gopt to Main