Outlining and added $http as variable param.