Adding a put and delete function to be more REST-like