GH: Finally got the overlapping function right. So silly