Add logic to return error if stacks array is empty
Add system status when returning the parameters