added guard and spork for automatic testing.