Added floor and ceil functions.