Add alerts factory, closes #206