Added implementation of status fucntions.