Moving the uart code to an extra file