Fixed syntax error and $filename