Small update. Changed 'filename' to 'filepath' for clarity