Make framework independent of $root