Add very basic implementation for handling math. Needs a lot of improvement