Mike's code w/ debug lines