Removed unnecessary dir parameter.