Better file opening methods