Added a function contributed by Hung, marked version 0.2.0 of the API engine