Adapted explore function to specifications