Can now flatten arrays or leave alone