added size parameter to advanced options