Added a terminator function