Added stop threads functionality