Added kill function