Added var declaration to extraParams