Created function for pushing messages
Added sub-module for rules