Removed redundant $prefix variable and EOF newline