Refactor for debugging purposes.