Simpler implementation.