Fixed style, dependencies and bug where the function could not be called with just dependencies.