Added possibility for different open commands