Added call to updatehook, and fixed broken import statement.