Changed to library instead of main