Added % based positions and uncommented resize ftn