Wrote generateNotice function to replace create/delete notice functions