Added kernel extraction