Preliminary code for Dynamic Code Reader