Added is-next-x functions