Changed operators to static functions (cleaner for primops)