Finished Console code.