New shell function