Fixes issues #65 and #63

Got rid of duplication in Utils class, as described on #65 and got rid of the empty catch block described on #63.