Finished mode a. Need to write mode b