First pseudo-working implementation