Draft implementation of apply.
Draft implementation of attach.
Draft of parsing added.