Add some utils functions and add command 'ps'