Modified API to make it possible to use it with PHP's include function.