Making geofence actions generic