Added comments and exception if unrecognized automode