Elminate try-with in Gaussian