Made location sizes a parameter