Now accepts input as command line argument. Allows use in context menus.