Changed to prevent killing task on last modified for sink, added JSON deserialisation