Start and stop functions but it segfaults
Start and stop function works