Framework for Alarm plugin