Reverted exploration function to old, random, version