Added size parameter to the pattern