Initial rough code.