Amended to return the problems list