Added set(). A lot of code duplication though..