Added supressed warnings
Modified code to remove warnings