Replaced multi catch statements with single catch multiple times