Wrote custom ceil to prevent compiler related confusion