Support for code fragments. Switch not working yet.