Fixing errors in source and making use of filter functions
Session:: was missing