Added current functionality and documentation.