Changed list(data) to explicit list creation