Extending geofence functionality