Adding code to client