Removed try and catch, very inefficient.