Simple working implementation.