Add spec dir and update code.