Preventing crimes in local communities