Better implementation.