It does the trick. Just be careful, somehow my cat got stuck in between the bars. I had to remove the bar to get her out. I use this to keep the dogs from going upstairs.