Updated constructor and implemented execute functions for both.