Working version for 1 row