Refactored Heredoc;
Created function to check iSeries;
Added support for iSeries; Thanks @Andrewpk;