Adding servlet functionality