Removed superfluous function parameter. Tests successful.