BREAKING CHANGES: Changed order of parameters. Also updated examples and README.