Added basic rendering code