Added addData method