Logic implemented.