Added required funtions