Better errors handling.