First pseudo working version.