Added error checking when adding a chao