Using lastColumn instead of e.target as they are not always the same.