Basic attendance function added