Adding putEvent