Added opening input streams