Get rid of small function to read id from file