Added computing and testing functions