Some simplification to etherpad functions