Updated registerHandler function docblock