Pass appropriate number of arguments to rect()