Fixed explore() function