Wow you aren't wrong, the first blog post on Google talking about this is exactly what this complicated method does just built-in.