Make custom implementation of period method, see #4