Removed all warnings in the code