Removing IO usage