Added countdown function