Added logic docs