Using script mode with options