Completed 3x10 function (NOT TESTED).