Fixed return statement to allow plugin chaining.