WiP coming closer to the end - it gives some output that makes sense,
but still need some cleaning up and proper logging