Fixes #14 in main repo. Moves root declaration to build sequence