Some code for user insertion