Add adding events functionality, although it's ucurrently a little wonky