Added error handling to cope with memory issues for big species