Cleanedup code.