Cleaned up the jungle behavior code