Updated to use `fail` over `catch`.