Added open file snippet