Added advanced options.
Added correct syntax for object generation.