Aded helpers functions.