Add ability to stop threads in phone app