Finished writing routines to test k-inf application