Added arithmetics processing. Fixed stupid mistakes...