Use push instead of setting by index, gets rid of some empty lines generated by sparse resource array