Preliminary code.