Added more comments and commented out console logging.