Mochad -> simplified read. corrected out of index errors. Next steps, is
to add in State setting for security devices.