Completed and added base code.