Function that applies funtions in sequence to simplyfy syntax