Added floor and ceil