Stripped out debugging conditional code (if ever needed I will use original SimonK)