Added better errors for development