New simpler and more robust implementation of infill every 'n' layers