Hooking learn. This fixes #19