Removing printStackTrace statements