Added two simple functions