Implemented log filter
Fixed "integer expression expected" error
Implemented TPS option