Changed rendering method

Things got overly complicated with the other approach.