Add support for instances

Add a way to record non scope events (instances).