Moved API into lib module can be imported using new global requireLib function.