Don't move the return value below the __END__ tag
Updated for format changes to PTV website
Added cache test feature