beat me to it! But yeah check out the article above for a really solid implementation