Updated naming convention in duplicate function