Fixed seg fault issues and problems running sequential commands.