Changed to use open