Modified Intent instance

Added categories, flags etc to the Intent instance.