Removed WAX_METHOD. Replaced it with regular function calls. Added proper support for wax_error in them.