Converted to a RESTful controller entirely