Adds dependencies and catches more errors