Added code to toggle led