Adding JSDoc implementation