Finished up to function 93