Added first version of actual register, still need to make it configurable and to add a delete hook