Implemented apply for lift4.