Adding logic