Added return values for all functions.