Start the receiver function also in a seperate thread