Added some exception handling and a new build profile