Modified to support Mojolicious