Added 'memory locations' as a modem constructor parameter.