Improved error printing and fixed startup order.