Added completion function for the 'em' function