Add function to read library