Post and filtering working; code cleanup