Setting up cap