Got PHP vars to pass into functions, started filtering functions