Improving a bit the complexity for attendance controller.

Not real improvement but just making things a bit more clear.