Added argument and file access verification