Fixed rendering problems and added compact option