More uniform interface for calling train()
and removal of native hooks