Small features and updates:
Updated to latest API.
Split hooks in different functions.
Added /ceil.