Code now working. Missing windowing and level