Implemented (almost) R commands v2