Major work; added profile controller. Actually works!