Changed to use push method for array