Removed unnecessary scope from main