Added ranger hook