Fixed controllers to work with require