Added end of print serial commmand to api