[#16] Fixed variable name spelling issue. Added more debug information.