Title: Adding Logic to Fire Prevention Systems