Implemented the required functionality. Not a lot of moving parts! :)