Initial implementation of tailq