Implemented constant folding