working on control
Adding a bit of logging