Removed sloppily handmade contains method, using indexOf instead.