diff --git a/lib/platformexploit.rb b/lib/platformexploit.rb
index <HASH>..<HASH> 100644
--- a/lib/platformexploit.rb
+++ b/lib/platformexploit.rb
@@ -31,8 +31,12 @@ module Ronin
       super(advisory)
       @targets = []
 
-      params << Param.new('target','default target index',0)
-      params << Param.new('custom_target','custom target to use',nil)
+      params.add_param('target','default target index',0)
+      params.add_param('custom_target','custom target to use')
+    end
+
+    def add_target(target)
+      @targets << target
     end
 
     def get_target
* Use the add_param method for adding parameters.
* Added the 'add_target' method to the Target class.