Add full function and update gradle to 1.7