Is it possible to write custom HAPI functions with HDK?