Fixed variable problem addressed in issue 11