Added ceil and nrefactory