still working on statements.

Added event for easier debugging