Fixing no use before define issues (Fixes #280)

Fixes #280