Error catching and check usage