Added code for creating lists based on shell commands.