Added some constances vars and functions. stubbed filter functions.