Improve compatibility with system AS further by allowing input from stdin