Found bug and added comments for fix.