Trying to add both executable and library functionality