Domain logic implementation.