Also, leap_check might be helpful.