Added serial controller thread