Foundation code added