Functions to_N added