Add register() instead of modification of Function prototype