Corrected som stupid bugs and added a mapfragment.