Added available memory checker.