Adding units to the resize function