Added new function for easy registering