Rewrite the get_placeholders function to be more correct