Removed unused functions and export function sourceURL