implementing multiple functions. crime rating logic still pending implementation