Added conditions for multiple hint paths