Added stdin interface