Adding median time check on block headers