Rewrite tempus_api