Expand apply, update documentation