Completed coding portion.