Minor fix
A crude attempt at creating a thread