Cleaned AutonAction code