Added decorator to all functions.