This paper describes a knowledge based front-end to a subset of the NAG FORTRAN library (called the Foundation Library) hereafter referred to as KASTLE (Knowledge Assisted Selection Tool for Library Environments). The development of KASTLE has gone through several changes to accommodate technological advances. In this paper, we describe how the knowledge of individual routines is represented and give a brief overview of the selection mechanism which enables the user to select the desired routine.