Separate out function application and lists