#4 Added restarting thin