Added pulley code.