Make state a static variable
Move definition of target baud rate to header file