Finished main code, just have to comment.