Initial commit with working implementation.