Adding attendance functionality.