My implementation of the underscore functions.