Different implementation with boundary on no. fd