Implementing 'open' and 'list' commands