Added support for inserting contacts