Added functions prototyp and return types.