Added hide_elements option