Updated the explore function