Using cleanArray in DisplayInstance
cleanArray usage
Fixing unused variables