Look at this.
Post 3 might be interesting. I think you just need to change the 2 to 3 to get what you want.