Added more documentation for clarity.