Adds method to register services