Added license info and removed unnecessary function arguments.