Added listeners and basic operation of them.