Code is less limited and makes sense and redundant code is removed

Signed-off-by: Ollie <dzineit@live.co.uk>
Merge pull request #1 from DziNeIT/patch-1

Code is less limited and makes sense and redundant code is removed