Modified some syntax in main, did not change behavior.