Added auto mode to API, serial read not working