Changed to chainable functions.