Removed service attibute. Fixed a few initializing bugs