Added guards for input params + documentation.