Enhanced to allow the passing of a viewport in the config
Authored by: gautamj 2010-08-25
Parent: [r4703]
Child: [r4705]