Added functions for getting name and id