Adding functionality to read from file