Added another function for sims
Changed catches from vector to matrix