Added try catch for systematic algorithms