Added common methods for Route.php