Added extra logging in routes