Clean up input source