Modified to support Mojolicious 5.0