Completed stack_join, although it isn't fitting in currently.