Changes made by Kelvin Kosbab (kelvin@kosbab.com). New add match functionality. Made notifications a helper function.