Finally Fixed the Open Function.