Added register procedure

Signed-off-by: Phillipp Ohl <phillippohl@gmail.com>