Added data as a parameter