Revert "Deleted unnecessary functions"

This reverts commit 23f55daca52f307fef75d6c09d3e86761694d9ae.