Added var declaration to data variable.