Slim added and error handling