Reworked explore code
Reworked explore code and minor bug fixed