Except for the incorrect number of {, yes, you are barking up the right tree.
Now, knock it off. The barking is annoying.